package com.schezhi.link.auth.session;

import java.util.Map;

/**
 * @Author: JiaLing.Fan
 * @Date: 2022/11/30 21:20
 * @Description:
 */
public interface SessionTemplate<T> {

    T get() ;

    T get(String sessionId) ;

    T getSign(String sessionId) ;


    void put(String sessionId, T data) ;

    void putSign(String sessionId, T data) ;
    void putSign(String sessionId, T data , int expires) ;

    void remove(String sessionId) ;

    Map<String, T> gets() ;

    void removes() ;

    void currentThreadremove();
}
